package com.nzw.pojo.coupon;

import com.nzw.pojo.integral.Integral;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Administrator on 2018\4\14 0014.
 *
 *
 */

@Table(name = "t_couponrule")
public class CouponRule {

    private Long id;            //id
    private Long companyId;       //企业id
    private Long shopId;        //门店id
    private String title;       //标题
    private Integer freeMoney;	//优惠金额
    private Integer minSpend;	//最低消费金额
    private Boolean use98;		//98汽油可用
    private Boolean use95;		//95汽油可用
    private Boolean use92;		//32汽油可用
    private Boolean use90;		//90汽油可用
    private Boolean use0;		//0号柴油可用
    private Boolean use_10;		//-10号可用
    private Integer type;		//1_生日券 2_加油券 3_会员日券 4_支付赠送 5_关注赠送
    private Date createDate;	//创建时间
    private Date endDate;		//过期时间
    private String descript;        //描述
    private Integer valueDay;      //有效天数
    private Integer payMoney;
    private Double oilNumber;
    private Boolean del;


    @Column(name = "del")
    public Boolean getDel() {
        return del;
    }

    public void setDel(Boolean del) {
        this.del = del;
    }

    @Column(name = "payMoney")
    public Integer getPayMoney() {
        return payMoney;
    }

    @Column(name = "oilNumber")
    public Double getOilNumber() {
        return oilNumber;
    }

    public void setOilNumber(Double oilNumber) {
        this.oilNumber = oilNumber;
    }

    public void setPayMoney(Integer payMoney) {
        this.payMoney = payMoney;
    }

    @Column(name = "companyId")
    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }


    @Column(name = "shopId")
    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "title")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Column(name = "freeMoney")
    public Integer getFreeMoney() {
        return freeMoney;
    }

    public void setFreeMoney(Integer freeMoney) {
        this.freeMoney = freeMoney;
    }

    @Column(name = "minSpend")
    public Integer getMinSpend() {
        return minSpend;
    }

    public void setMinSpend(Integer minSpend) {
        this.minSpend = minSpend;
    }


    @Column(name = "use98")
    public Boolean getUse98() {
        return use98;
    }

    public void setUse98(Boolean use98) {
        this.use98 = use98;
    }

    @Column(name = "use95")
    public Boolean getUse95() {
        return use95;
    }

    public void setUse95(Boolean use95) {
        this.use95 = use95;
    }

    @Column(name = "use92")
    public Boolean getUse92() {
        return use92;
    }

    public void setUse92(Boolean use92) {
        this.use92 = use92;
    }

    @Column(name = "use90")
    public Boolean getUse90() {
        return use90;
    }

    public void setUse90(Boolean use90) {
        this.use90 = use90;
    }

    @Column(name = "use0")
    public Boolean getUse0() {
        return use0;
    }

    public void setUse0(Boolean use0) {
        this.use0 = use0;
    }

    @Column(name = "use_10")
    public Boolean getUse_10() {
        return use_10;
    }

    public void setUse_10(Boolean use_10) {
        this.use_10 = use_10;
    }

    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Column(name = "createDate")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Column(name = "endDate")
    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    @Column(name = "descript")
    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    @Column(name = "valueDay")
    public Integer getValueDay() {
        return valueDay;
    }

    public void setValueDay(Integer valueDay) {
        this.valueDay = valueDay;
    }


    @Override
    public String toString() {
        return "CouponRule{" +
                "id=" + id +
                ", companyId=" + companyId +
                ", shopId=" + shopId +
                ", title='" + title + '\'' +
                ", freeMoney=" + freeMoney +
                ", minSpend=" + minSpend +
                ", use98=" + use98 +
                ", use95=" + use95 +
                ", use92=" + use92 +
                ", use90=" + use90 +
                ", use0=" + use0 +
                ", use_10=" + use_10 +
                ", type=" + type +
                ", createDate=" + createDate +
                ", endDate=" + endDate +
                ", descript='" + descript + '\'' +
                ", valueDay=" + valueDay +
                ", payMoney=" + payMoney +
                ", oilNumber=" + oilNumber +
                ", del=" + del +
                '}';
    }
}
